<div class="container">
    <div ng-controller="userDetailController">
        <div class="row">
            <div class="col-sm-12">
                <form name="userDetailForm" class="form-horizontal" role="form" novalidate>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">ID</label>
                        <div class="col-sm-3 form-control-static">{{user.id}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">用户名</label>
                        <div class="col-sm-3 form-control-static">{{user.userName}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">状态</label>
                        <div class="col-sm-3 form-control-static">{{user.isDisable ? "冻结" : "激活"}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">角色</label>
                        <div class="col-sm-3 form-control-static">{{user.isDeveloper ? "开发者" : "使用者"}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">登陆次数</label>
                        <div class="col-sm-3 form-control-static">{{user.loginCount}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">创建者</label>
                        <div class="col-sm-3 form-control-static">{{user.creator ? user.creator.userName : '系统'}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">创建日期</label>
                        <div class="col-sm-3 form-control-static">{{user.createDate | date : "yyyy-MM-dd HH:mm:ss"}}</div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-1 control-label">修改日期</label>
                        <div class="col-sm-3 form-control-static">{{user.modifyDate | date : "yyyy-MM-dd HH:mm:ss"}}</div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-3 col-sm-offset-5">
                            <div class="btn-group">
                                <button type="button" class="btn btn-primary btn-sm" location-back>返回</button>
                                <button type="button" ng-disabled="!user.creator || user.creator.id != $security$.user.id" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="caret"></span></button>
                                <ul class="dropdown-menu">
                                    <li ng-class="{'disabled':!user.creator}"><a href="javascript:void(0);" location-go="/business/user/update/{{user.id}}">修改</a></li>
                                    <li ng-class="{'disabled':!user.creator}"><a href="javascript:void(0);" ng-click="enableOrDisable(user)">{{user.isDisable ? "激活" : "冻结"}}</a></li>
                                    <li ng-class="{'disabled':!user.creator}"><a href="javascript:void(0);" ng-click="passwordReset(user)">重置密码</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>